﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared/OneColumn.Master" AutoEventWireup="true"
    CodeBehind="Match.aspx.cs" Inherits="SharingCenter.Web.Mod.Learning.Match" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    互助匹配结果
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
    <asp:ScriptManagerProxy runat="server" ID="ScriptManagerProxy1">
        <Scripts>
            <asp:ScriptReference Path="~/Mod/Learning/Match.js" />
        </Scripts>
    </asp:ScriptManagerProxy>
    <myuc:GenericTabs ID="LinkListTabs1" SelectedItem="4" runat="server" Section="Learning" />
    <h2>
    </h2>
    <asp:MultiView ID="MultiView1" runat="server">
        <asp:View ID="View1" runat="server">
            <myuc:MessageBox runat="server" MessageType="Warning" ID="MessageBox1" Text="互助信息不存在！" />
            <div class="ctn-p-t">
                <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="./" CssClass="submitbutton">确定</asp:HyperLink>
            </div>
        </asp:View>
        <asp:View ID="View2" runat="server">
            <div class="fc lpmatch">
                <div class="left ctn-p-r t1">
                    我的期望</div>
                <div class="prof">
                    <myuc:LearningProfileItem runat="server" ID="LearningProfileItemToMatch" ShowButtons="false"
                        HighlightSkills="True" />
                </div>
            </div>
            <h2 class="bb fc">
                <span class="left">互助匹配结果 </span><span class="right sz-s">共找到
                    <asp:Label ID="lblMatchCount" runat="server"></asp:Label>
                    条结果 </span>
            </h2>
            <asp:LinqDataSource ID="LinqDataSource1" runat="server">
            </asp:LinqDataSource>
            <asp:ListView ID="lvMatchResult" runat="server" InsertItemPosition="None" DataKeyNames="LearningProfileId"
                DataSourceID="LinqDataSource1">
                <LayoutTemplate>
                    <div runat="server" id="itemPlaceholder" />
                </LayoutTemplate>
                <ItemTemplate>
                    <div class="fc lpmatchresult">
                        <div class="left ctn-p-r t1">
                            <myuc:ThumbAvatar runat="server" CssClass="namelink" UserId='<%#Eval("UserId") %>' />
                            <div class="ctn-p-t">
                                <asp:HiddenField ID="hdnUserId" runat="server" Value='<%#Eval("UserId") %>' />
                                <asp:HiddenField ID="hdnLearningProfileId" runat="server" Value='<%#Eval("LearningProfileId") %>' />
                                <%--<asp:LinkButton ID="btnRequestOpener" CssClass="addbutton openrequestwindowbutton"
                                    runat="server" Text="互助邀请" CommandName="RequestLearning" OnLoad="btnRequestOpener_Load" />--%>
                                <asp:HyperLink runat="server" CssClass="addbutton requestbutton" rel='<%#Eval("LearningProfileId")+"|"+Eval("UserId") %>'>互助邀请</asp:HyperLink>
                                <%--<asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                    <ContentTemplate>
                                        <asp:Panel ID="pnRequestTime" CssClass="ctn-p-t litetext" runat="server" Visible="false">
                                            邀请已于<asp:Label ID="lblRequestTime" runat="server"></asp:Label>发送。
                                        </asp:Panel>
                                    </ContentTemplate>
                                </asp:UpdatePanel>--%>
                            </div>
                        </div>
                        <div class="prof">
                            <myuc:LearningProfileItem CssClass="learning-profile-b" runat="server" ID="LearningProfileItemToMatch"
                                ShowButtons="false" LearningProfileDataItem='<%#Container.DataItem %>' />
                        </div>
                    </div>
                </ItemTemplate>
                <EmptyDataTemplate>
                    <myuc:IconSet runat="server" CssClass="nss ns-info" Text="没有找到匹配结果。" />
                </EmptyDataTemplate>
            </asp:ListView>
        </asp:View>
    </asp:MultiView>
    <div class="dialogform1" id="learningrequestwindow" title="发出互助邀请">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <div style="width: 250px;">
                    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                        <ProgressTemplate>
                            <cc:WaitImage ID="WaitImage1" Size="Size16" runat="server" AlternateText="请等待" />
                            加载中...
                        </ProgressTemplate>
                    </asp:UpdateProgress>
                    <asp:MultiView ID="mvRequest" runat="server" ActiveViewIndex="0">
                        <asp:View ID="View3" runat="server">
                            <asp:Panel runat="server" ID="pnRequestWindow" Visible="false">
                                <div>
                                    将互助邀请发送给
                                    <cc:NickNameLink ID="NickNameLink1" runat="server" />。<br />
                                    附言:<br />
                                    <asp:TextBox Text="你好，我想跟你交换技能。" ID="txtComment" runat="server" TextMode="MultiLine"
                                        Rows="5"></asp:TextBox>
                                </div>
                                <div class="actionarea">
                                    <asp:LinkButton ID="lnkSendRequest" runat="server" CssClass="submitbutton">发送</asp:LinkButton>
                                    <a class="closemodalformbutton">取消</a>
                                    <asp:HiddenField ID="hdnUserId" runat="server" />
                                    <asp:HiddenField ID="hdnLearningProfileId" runat="server" />
                                </div>
                            </asp:Panel>
                        </asp:View>
                        <asp:View ID="View4" runat="server">
                            <div>
                                互助邀请已经发送给<cc:NickNameLink ID="NickNameLink2" UserId='<%#Eval("UserId") %>' runat="server" />。
                            </div>
                            <div class="actionarea">
                                <a class="submitbutton closemodalformbutton-nostyle">确定</a>
                            </div>
                        </asp:View>
                    </asp:MultiView>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    <div class="dialogform" id="Div1" title="发出互助邀请">
        <div style="width:250px;">
        <div id="readytosend">
            将互助邀请发送给
            <span class="requesteelink"></span>。<br />
            附言:<br />
            <input type="hidden" value="<%=Request.QueryString["id"] %>" id="requestorLpid" />
            <textarea rows="5" cols="20" id="requesteecomment" ></textarea>
            <div class="actionarea">
                <a id="sendrequestbutton" class="submitbutton">确定</a>
            </div>
        </div>
        <div id="sendsuccess">
            发送成功：已经将互助邀请发送给<span class="requesteelink"></span>。
            <div class="actionarea">
                <a class="closemodalformbutton-nostyle submitbutton">确定</a>
            </div>
        </div>
        </div>
    </div>
</asp:Content>
